from django.urls import path, re_path

from resources import views

urlpatterns = [
    re_path(r'^recommend/(?P<sort>[\u4e00-\u9fa5]+)/(?P<classes>[\u4e00-\u9fa5a-zA-Z0-9]+)/$', views.recommend),
    path('learning_center/', views.learning_center, name='learning_center'),
    path('filter_resources/', views.filter_resources, name='filter_resources'),

    path('resource_detail/<str:res_type>/<int:id>', views.resource_detail, name='resource_detail'),
    path('load_child_comments/<str:res_type>/<int:parent_id>/',views.load_child_comments,name='load_child_comments'),

    path('book/preview/<int:book_id>/', views.book_preview, name='book_preview'),
    path('book/download/<int:book_id>/', views.book_download, name='book_download'),

    path('footprint/<str:key>', views.footprint, name='footprint'),

]